	var temperatureMin = -5 ;
	var temperatureMax = 100 ;
	
	var mouseX = 0;
	var mouseY = 0;
	
	
	var scene = new THREE.Scene(); 
	
	var camera = new THREE.PerspectiveCamera(75, window.innerWidth/window.innerHeight, 0.1, 100); 	

	
	var renderer = new THREE.WebGLRenderer();
	renderer.setSize(window.innerWidth, window.innerHeight); 
	
	document.body.appendChild(renderer.domElement);
	
	
	 creationNCubeAleatoire(scene,30,temperatureMax,temperatureMin);

	
	 camera.position.z = 20;
	 camera.position.x = 2;
	 camera.position.y = 5; 
	 
	 
	afficheRepere(scene);
	afficherGrille(scene,100,100,1);
	
	document.addEventListener("mousemove",onDocumentMouseMove,true);
        
	render();
	
	
	function render() { 
	requestAnimationFrame(render); 
	renderer.render(scene, camera);
	}
	
	function onDocumentMouseMove( event ) {

        mouseX = event.clientX;
        mouseY = event.clientY;
}
	
	
